#ifndef CTRANSLATEWIDGET_H
#define CTRANSLATEWIDGET_H

#include "../Common/CMyWindow.h"
#include "CTranslateResultWidget.h"

#include <QWidget>

namespace Ui {
class CTranslateWidget;
}

class CTranslateWidget : public CMyWindow {
    Q_OBJECT

  public:
    explicit CTranslateWidget(QWidget* parent = nullptr);
    ~CTranslateWidget();

    // 重写函数
    virtual void LoadSize(QWidget* parent) override;
    virtual void SaveSize(QWidget* parent) override;
    virtual QMenuBar* GetMenuBar() override;
    virtual int GetComponentId() override;

  private:
    void CreateTranslateResult();

  private slots:
    void on_btnCreate_clicked();

  private:
    Ui::CTranslateWidget* ui;
    static QString s_strFileName;

    CTranslateResultWidget* m_pTranslateResultWidget;
};

#endif  // CTRANSLATEWIDGET_H
